package cn.xiaoyuan.service.impl;

import cn.xiaoyuan.dao.AdminMapper;
import cn.xiaoyuan.entity.AuthUser;
import cn.xiaoyuan.entity.Sell;
import cn.xiaoyuan.entity.UserDetails;
import cn.xiaoyuan.service.AdminService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;
@Service
public class AdminServiceImpl implements AdminService {
    @Resource
    AdminMapper adminMapper;
    @Override
    public List<UserDetails> getAdminList() {
        return adminMapper.getAdminList();
    }

    @Override
    public List<UserDetails> getUserList() {
        return adminMapper.getUserList();
    }

    @Override
    public List<UserDetails> getVistorList() {
        return adminMapper.getVistorList();
    }

    @Override
    public void forBidden(int id) {
      adminMapper.forBidden(id);
    }

    @Override
    public void formal(int id) {
        adminMapper.formal(id);
    }
}
